package edu.scau.mis.pos.entity;

import java.io.Serializable;
import java.util.List;

/**
 * (PosItem)实体类
 *
 * @author makejava
 * @since 2021-10-23 10:59:52
 */
public class PosItem implements Serializable {
    private static final long serialVersionUID = -63366333551051885L;
    /**
     * 商品ID
     */
    private Integer itemId;
    /**
     * 商品条形码
     */
    private String itemNo;
    /**
     * 商品名称
     */
    private String itemName;
    /**
     * 库存
     */
    private Integer inventory;
    /**
     * 价格
     */
    private Double price;
    /**
     * 商品种类编号
     */
    private Integer categoryId;



    public Integer getItemId() {
        return itemId;
    }

    public void setItemId(Integer itemId) {
        this.itemId = itemId;
    }

    public String getItemNo() {
        return itemNo;
    }

    public void setItemNo(String itemNo) {
        this.itemNo = itemNo;
    }

    public String getItemName() {
        return itemName;
    }

    public void setItemName(String itemName) {
        this.itemName = itemName;
    }

    public Integer getInventory() {
        return inventory;
    }

    public void setInventory(Integer inventory) {
        this.inventory = inventory;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    /**
     * 商品类型对象
     * category:item为1:N
     */
    private PosCategory category;

    public PosCategory getCategory() {
        return category;
    }

    public void setCategory(PosCategory category) {
        this.category = category;
    }

    private List<OrderItem> orderItemList;

    public List<OrderItem> getOrderItemList() {
        return orderItemList;
    }

    public void setOrderItemList(List<OrderItem> orderItemList) {
        this.orderItemList = orderItemList;
    }
}

